package com.lianyun.day01;

public class SwitchDemo {
    public static void main(String[] args) {

      /*  int x=5;
        switch (x){

            default:
                System.out.println("d");
                //break;

            case 2:
                System.out.println("a");
                //break;

            case 3:
                System.out.println("b");
                break;

            case 4:
                System.out.println("c");
                break;

       */

        /*int a = 3, b = 4;
        char c='%';

        switch (c){

            case '+':
                System.out.println(a+b);
                break;

            case '-':
                System.out.println(a-b);
                break;

            case '*':
                System.out.println(a*b);
                break;

            case '/':
                System.out.println(a/b);
                break;

            default:
                System.out.println("没有指定符号");

         */

        int month = 13;

        switch (month){

            case 3:
            case 4:
            case 5:
                System.out.println(month+"对应的季节是春季");
                break;
            default:
                System.out.println(month+"没有对应的季节");
                break;


        }




    }
}
